import SwiftUI
struct MyFavoursView: View {
    @State private var locked = true
    var body: some View{
        VStack{
            Image(systemName: locked ? "lock.fill" : "xmark.circle.fill")
                .foregroundColor(locked ? .blue : .red)
                .font(locked ? .title : .title)
            Text(locked ? "收藏夹已经被锁定" : "启动收藏夹时发生错误")
            Button(locked ? "启动收藏夹" : "锁定收藏夹"){
                if !locked{
                    locked = true
                } else if locked == true{
                    locked = false
                }
            }
            
        }
    }
    
}
